<template>
  <div> 首页 </div>
</template>

<script setup>
  import api from '@/api';
  const login = () => {
    const formData = {
      username: 'admin',
      password: '123456',
    };
    api.base.login(formData).then((res) => {
      console.log(res, 'res');
    });
  };
  login();
</script>

<style lang="less" scoped></style>
